package com.jackstraw.jack_base.util.entity;

/**
 * 默认常量信息
 */
public class DefaultConstants {

    /**
     * 默认数据源主名称
     */
    public static final String DEFAULT_DATA_BASE_MAIN_NAME = "DATABASE_MAIN";
    public static final String DEFAULT_REDIS_MAIN_NAME = "REDIS_MAIN";
    public static final String DEFAULT_ELASTICSEARCH_MAIN_NAME = "ELASTICSEARCH_MAIN";


    public static final String DEFAULT_MQ_MAIN_NAME = "MQ_MAIN";
    public static final String DEFAULT_ROCKET_MQ_MAIN_NAME = "ROCKET_MQ_MAIN";
    public static final String DEFAULT_KAFKA_MQ_MAIN_NAME = "KAFKA_MQ_MAIN";

    /**
     * 默认数据库配置文件Bean名称
     */
    public static final String DEFAULT_DATA_BASE_PROPERTIES_NAME = "databaseDataBaseProperties";
    /**
     * 默认redis配置文件Bean名称
     */
    public static final String DEFAULT_REDIS_PROPERTIES_NAME = "redisDataBaseProperties";

    /**
     * 默认数据源名称
     */
    public final static String DEFAULT_DATASOURCE_NAME = "dataSource";

    /**
     * 默认租户名称
     */
    public final static String DEFAULT_TENANT_NAME = "TENANT";

    /**
     * Redis系统key前缀
     */
    public final static String SYS_CONFIG_KEY = "sys:config:";

    /**
     * MQ默认分组
     */
    public final static String DEFAULT_GROUP = "defaultGroup";
    /**
     * MQ默认主题
     */
    public final static String DEFAULT_TOPIC = "defaultTopic";

    /**
     * 定义常量default
     */
    public final static String DEFAULT = "default";

    /**
     * 当前页码
     */
    public final static String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public final static String PAGE_SIZE = "pageSize";

    /**
     * 排序字段
     */
    public final static String ORDER_FIELD = "orderField";

    /**
     * 排序方式
     */
    public final static String ORDER = "order";

    /**
     * 排序
     */
    public final static String SORT = "sort";

    /**
     * 升序
     */
    public final static String ASC = "asc";

    /**
     * 降序
     */
    public final static String DESC = "desc";

    /**
     * 拼接redis系统key
     *
     * @param key
     * @return
     */
    public static String concatSysConfigKey(String key) {
        return SYS_CONFIG_KEY.concat(key);
    }


}
